package com.zhijian.medical.entity.po;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 维护记录
 *
 * @author Auto Generator
 * @date 2022-01-01 15:39:46
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Api(tags = "维护记录")
public class DeviceMaintenanceRecord {
    /**
     * id
     */
    @ApiModelProperty(value = "id", hidden = true)
    private Long id;

    /**
     * 维护日期
     */
    @ApiModelProperty("维护日期")
    private String date;

    /**
     * 维护简介，内容
     */
    @ApiModelProperty("维护简介，内容")
    private String summary;

    /**
     * 文件路径
     */
    @ApiModelProperty("文件路径")
    private String filePath;

    /**
     * 维护人
     */
    @ApiModelProperty("维护人")
    private String maintenancePerson;

    /**
     * 序号
     */
    @ApiModelProperty(value = "序号", hidden = true)
    private Integer sortNum;

    /**
     * 设备id
     */
    @ApiModelProperty("设备id")
    @NotNull(message = "设备id不能为空")
    private Long deviceId;

    /**
     * 周
     */
    @ApiModelProperty("周")
    private String week;

    /**
     * 月份
     */
    @ApiModelProperty("月份")
    private String month;

    /**
     * create_time
     */
    @ApiModelProperty(value = "create_time", hidden = true)
    private Date createTime;

    /**
     * update_time
     */
    @ApiModelProperty(value = "update_time", hidden = true)
    private Date updateTime;
}